﻿//-----------------------------------------------------------------------
// <copyright file="SnappedMenuButton.xaml.cs" company="Microsoft Corporation">
//     Copyright Microsoft Corporation. All Rights Reserved. This code released under the terms of the Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) This is sample code only, do not use in production environments.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.ALMRangers.VsarTreasureMap.WindowsStoreApp.Controls
{
    using Windows.UI.Xaml;

    /// <summary>
    /// The snapped menu button.
    /// </summary>
    public sealed partial class SnappedMenuButton
    {
        /// <summary>
        /// The menu image property
        /// </summary>
        public static readonly DependencyProperty MenuImageProperty = DependencyProperty.Register("MenuImage", typeof(string), typeof(SnappedMenuButton), new PropertyMetadata(string.Empty));

        /// <summary>
        /// The menu title property
        /// </summary>
        public static readonly DependencyProperty MenuTitleProperty = DependencyProperty.Register("MenuTitle", typeof(string), typeof(SnappedMenuButton), new PropertyMetadata("title"));

        /// <summary>
        /// Initializes a new instance of the <see cref="SnappedMenuButton"/> class.
        /// </summary>
        public SnappedMenuButton()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the menu image.
        /// </summary>
        /// <value>The menu image.</value>
        public string MenuImage
        {
            get
            {
                return (string)GetValue(MenuImageProperty);
            }

            set
            {
                this.SetValue(MenuImageProperty, value);
            }
        }

        /// <summary>
        /// Gets or sets the menu title.
        /// </summary>
        /// <value>The menu title.</value>
        public string MenuTitle
        {
            get
            {
                return (string)GetValue(MenuTitleProperty);
            }

            set
            {
                this.SetValue(MenuTitleProperty, value);
            }
        }
    }
}